/*
    SUSAN® - Sole of Unix Save ANything

      Copyright (C) 2011-2016 Skyatlas Co. LTD

   Copyright (C) 2019-2020 Hechzh Property

   
*/

#ifndef BAREOS_STORED_AUTOCHANGER_RESOURCE_H_
#define BAREOS_STORED_AUTOCHANGER_RESOURCE_H_

#include "lib/bareos_resource.h"

class alist;

namespace storagedaemon {

class AutochangerResource : public BareosResource {
 public:
  AutochangerResource();
  virtual ~AutochangerResource() = default;
  AutochangerResource& operator=(const AutochangerResource& rhs);
  bool PrintConfig(OutputFormatterResource& send,
                   const ConfigurationParser&,
                   bool hide_sensitive_data,
                   bool verbose = false) override;


  alist* device_resources; /**< List of DeviceResource device pointers */
  char* changer_name;      /**< Changer device name */
  char* changer_command;   /**< Changer command  -- external program */
  brwlock_t changer_lock;  /**< One changer operation at a time */
};
} /* namespace storagedaemon */

#endif /* BAREOS_STORED_AUTOCHANGER_RESOURCE_H_ */
